package org.jupiter.blog.api.convertor;

import org.jupiter.blog.api.domain.JupiterDictionary;
import org.jupiter.blog.api.dto.JupiterDictionaryDTO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface JupiterDictionaryConvertor {

	JupiterDictionary toEntity(JupiterDictionaryDTO dto);

	JupiterDictionaryDTO toDto(JupiterDictionary entity);

	List<JupiterDictionary> toEntityList(List<JupiterDictionaryDTO> dto);

	List<JupiterDictionaryDTO> toDtoList(List<JupiterDictionary> entity);
}
